package com.cyzy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.dao.StudentClassDao;
import com.cyzy.mapper.ClassMapper;
import com.cyzy.pojo.Class;
import com.cyzy.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService {

    @Autowired
    private ClassMapper classMapper;

    @Override
    public List<StudentClassDao> showClass(StudentClassDao studentClassDao) {

        return classMapper.showClassByStudentId(studentClassDao);
    }
}
